#!/bin/sh

#│       │   ├── [   9]  pnmtotiff -> pamtotiff

list='anytopnm
giftopnm
jpegtopnm
pamcomp
pamcut
pamdice
pamfile
pamrgbatopng
pamscale
pamslice
pamsplit
pamstretch
pamtotiff
pbmtext
pbmtoxbm
pgmramp
pgmslice
pgmtopbm
pgmtoppm
pngtopam
pngtopnm
pnmalias
pnmcat
pnmcolormap
pnmconvol
pnmcut
pnminterp
pnmnlfilt
pnmquant
pnmremap
pnmrotate
pnmscale
pnmsmooth
pnmsplit
pnmtojpeg
pnmtopng
pnmtops
pamtotiff
ppmdither
ppmlabel
ppmquant
ppmrainbow
ppmrough
ppmtobmp
ppmtogif
ppmtopgm
ppmtoxpm
pstopnm
tifftopnm
xbmtopbm
xpmtoppm
xwdtopnm'

(
cd usr/bin
ls * | while read i ; do
	case $list in
		*"$i"*) continue  ;;
		*) rm -f $i ;;
	esac
done
)

[ ! -f usr/bin/pngtopnm ] && ln -s pngtopam usr/bin/pngtopnm
[ ! -f usr/bin/pnmscale ] && ln -s pamscale usr/bin/pnmscale
